<?php

use Illuminate\Database\Seeder;
use App\Models\CategoryModel;

class CategoryTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$input = [
            // 文章分类
            ['module' => 'posts', 'category_name_en' => 'news', 'category_name' => '新闻资讯'],
            ['module' => 'posts', 'category_name_en' => 'php', 'category_name' => 'PHP开发'],
            ['module' => 'posts', 'category_name_en' => 'linux', 'category_name' => 'Linux教程'],
            ['module' => 'posts', 'category_name_en' => 'javscript', 'category_name' => 'JavaScript文章'],
            ['module' => 'posts', 'category_name_en' => 'database', 'category_name' => '数据库'],
            ['module' => 'posts', 'category_name_en' => 'zhizhang', 'category_name' => 'IT职场'],
            ['module' => 'posts', 'category_name_en' => 'speech', 'category_name' => '演讲'],
            // 友情链接
            ['module' => 'links', 'category_name_en' => 'friends', 'category_name' => '友情链接'],
            ['module' => 'links', 'category_name_en' => 'tech', 'category_name' => '科技站'],
            ['module' => 'links', 'category_name_en' => 'news', 'category_name' => '新闻站'],
            ['module' => 'links', 'category_name_en' => 'edu', 'category_name' => '教育站'],
            ['module' => 'links', 'category_name_en' => 'bank', 'category_name' => '银行'],
        ];

        (new CategoryModel())->insert($input);
    }
}
